package com.liming.common.pojo.dto.coupon;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.liming.common.serializer.YuanToCentDeserializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author liming
 * @date 2025/1/19
 */
@Data
@AllArgsConstructor
@Schema(description = "优惠券是否可用于当前：订单、购物车")
public class CouponValidDTO {

    @Schema(description = "优惠券id")
    private Long id;

    @Schema(description = "总金额")
    @JsonDeserialize(using = YuanToCentDeserializer.class)
    private Integer totalAmount;
}
